{% extends "inner_base.html" %}

{% block innercontent %}

<div class="leaderboard">
	
	<h1>User Management</h1>
	<hr />
	
	{% if users %}
	<table class="table table-striped">
		<thead>
			<tr>
				<th>Login</th>
				<th>First Name</th>
				<th>Last Name</th>
				<th>Birth Date</th>
				<th>Status</th>
				<th>Role</th>
			</tr>
		</thead>
		<tbody>
			{% for user in users %}
			
				<tr>
					<td>{{ user.login }}</td>
					<td>{{ user.first_name }}</td>
					<td>{{ user.last_name }}</td>
					<td>{{ user.birth_date }}</td>
					<td>{{ user.status }}</td>
					<td>{{ user.role.name }}</td>
				</tr>
			
			{% endfor %}
		</tbody>
	
	</table>
	{% else %}
		<h2>There are no users registered.</h2>
	{% endif %}

</div>


{% endblock %}